/**
 * 
 */
package com.smc.action.user;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;

import com.opensymphony.xwork2.ActionSupport;
import com.smc.domain.model.Certification;
import com.smc.domain.model.User;
import com.smc.security.AuthenticationManager;
import com.smc.server.AuthenticationService;
import com.smc.server.CertificationService;
import com.smc.server.UserService;

/**
 * 
 * @author chenheng
 * @version 0.0.1
 * 表现层用户抽象控制类
 */
public class AbstractUserAction extends ActionSupport implements ServletRequestAware, ServletResponseAware {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3998576279211980144L;
	/**
	 * 表现层Request对象 
	 */
	protected HttpServletRequest request ;
	/**
	 * 表现层Response对象
	 */
	protected HttpServletResponse response ;
	/**
	 * 业务层用户服务
	 */
	protected UserService userService ;
	/**
	 * 认证授权管理器
	 */
	protected AuthenticationManager authenticationManager ;
	/**
	 * 业务层权限服务
	 */
	protected AuthenticationService authenticationService ;
	/**
	 * 用户
	 */
	protected User user ;
	/**
	 * 用户列表 
	 */
	protected List<User> userList ;
	/**
	 * 业务层证书服务
	 */
	protected CertificationService certService ;
	/**
	 * 证书
	 */
	protected Certification cert ;
	/**
	 * 证书列表
	 */
	protected List<Certification> certList ;
	
	public AuthenticationManager getAuthenticationManager() {
		return authenticationManager;
	}
	public void setAuthenticationManager(AuthenticationManager authenticationManager) {
		this.authenticationManager = authenticationManager;
	}
	public AuthenticationService getAuthenticationService() {
		return authenticationService;
	}
	public void setAuthenticationService(AuthenticationService authenticationService) {
		this.authenticationService = authenticationService;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public List<User> getUserList() {
		return userList;
	}
	public void setUserList(List<User> userList) {
		this.userList = userList;
	}
	public UserService getUserService() {
		return userService;
	}
	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	public void setServletRequest(HttpServletRequest request) {
		this.request = request ;
	}
	public void setServletResponse(HttpServletResponse response) {
		this.response = response ;
	}
	public Certification getCert() {
		return cert;
	}
	public void setCert(Certification cert) {
		this.cert = cert;
	}
	public List<Certification> getCertList() {
		return certList;
	}
	public void setCertList(List<Certification> certList) {
		this.certList = certList;
	}
	public CertificationService getCertService() {
		return certService;
	}
	public void setCertService(CertificationService certService) {
		this.certService = certService;
	}
	
}
